from django.urls import path
from rest_framework import routers

from course.views import *

router = routers.DefaultRouter()
urlpatterns = [
    path('course/add', CourseView.add),
    path('course/del', CourseView.dlt),
    path('course/mod', CourseView.mod),
    path('course/fav', CourseView.fav),
    path('course/unfav', CourseView.unfav),
    path('course/search', CourseView.search),
    path('course/join', CourseView.join),
    path('course/quit', CourseView.quit),
    path('course/info', CourseView.info),
    path('course/list', CourseView.list),
    path('course/favList', CourseView.favList),
    path('course/teamList', CourseView.teamList),
    path('course/joinList', CourseView.joinList),
    path('course/listVideo', CourseView.listVideo),
    path('course/listIssue', CourseView.listIssue),
    path('course/listComment', CourseView.listComment),

    path('comment/add', CommentView.add),
    path('comment/del', CommentView.dlt),
    path('comment/mod', CommentView.mod),

    path('video/add', VideoView.add),
    path('video/del', VideoView.dlt),
    path('video/geturl', VideoView.geturl),
    path('video/info', VideoView.info),

    path('issue/add', IssueView.add),
    path('issue/mod', IssueView.mod),
    path('issue/get', IssueView.get),
    path('issue/listReply', IssueView.listReply),

    path('reply/add', ReplyView.add),
    path('reply/mod', ReplyView.mod),
    path('reply/get', ReplyView.get),

]
